package com.itheima.test1;

public class MyFactoryDemo1 {
    public static void main(String[] args) {
        //案例:求1-100之间的和
        int num = 0;
        for (int i = 1; i <= 100; i++) {
            num += i;
        }
        System.out.println(num);
    }
}
